﻿/*=====================================================================================
	TASK 1:                                                 {Using Classes and Objects}
	Write a program that reads a year from the console and checks whether it is a leap.
    Use DateTime.
=====================================================================================*/

using System;

namespace _01.IsYearLeap
{
    class IsYearLeap
    {
        static void Main()
        {
            Console.Write("Enyer a year:");
            int year = int.Parse(Console.ReadLine());

            if (DateTime.IsLeapYear(year))
            {
                Console.WriteLine("year:{0} is leap",year);
            }
            else
            {
                Console.WriteLine("year:{0} isn'y leap", year);
            }
        }
    }
}
